cmake_minimum_required(VERSION 3.10)
project(navi_lib)

# 生成动态库
file(GLOB_RECURSE LIB_SOURCES 
    "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp"
    "${CMAKE_CURRENT_SOURCE_DIR}/src/*.h"
)

# 设置输出目录（项目根目录下的bin文件夹）
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin)

add_library(navi SHARED ${LIB_SOURCES})

# 设置头文件路径（供其他项目包含）
target_include_directories(navi PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src)
